package com.jingdianjichi.subject.common.entity;

/**
 * @Author:ZouChao
 * @Description:分页请求实体
 * @Date:Created in 11:44 2024/12/21
 * @Modified By:
 */
public class PageInfo {
    private Integer pageNo=1;

    private Integer pageSize=20;

    public Integer getPageNo() {
        if(pageNo <= 0 || pageNo ==null){
            return 1;
        }
        return pageNo;
    }

    public Integer getPageSize() {
        if(pageSize <= 0 || pageSize ==null || pageSize >Integer.MAX_VALUE){
            return 20;
        }
        return pageSize;
    }

}
